package com.nt.train.dao;
import java.util.HashMap;
import java.util.Map;
/**
 * @author hlf
 * @version 1.0
 * @date 2022/8/16 13:47
 */
public class UseDao {

    private Map<String, Integer> groupCounts = new HashMap<String, Integer>();

    {
        this.groupCounts.put("A", 500);
        this.groupCounts.put("B", 1000);
        this.groupCounts.put("C", 1200);
    }

    public int getStoreCount(String group) {
        Integer count = this.groupCounts.get(group);
        return null == count ? -1 : count.intValue();
    }
}
